package com.mesa.android.debtsapp.base

import android.os.Bundle
import android.os.PersistableBundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil

abstract class BaseActivity<T>: AppCompatActivity() {

    var binding: T?= null

    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
        super.onCreate(savedInstanceState, persistentState)
        binding = DataBindingUtil.setContentView(this, resourceId())
    }

    abstract fun resourceId():Int

    abstract fun initView()
    abstract fun initData()
    abstract fun initEvent()
}